package com.common.sdk.net.download.util;

import com.android.sohu.sdk.common.toolbox.LogUtils;
import com.common.sdk.net.download.request.model.DownloadInfo;

public class DownloadLog {
    private static final String TAG = "DownloadLog : ";

    public static void debug(String msg) {
        LogUtils.d(TAG, "" + msg);
    }

    public static void debug(DownloadInfo downloadInfo, String msg) {
        // toString 没重写
        LogUtils.d(TAG + downloadInfo.toString(), "" + msg);
    }

    public static void error(String e) {
        LogUtils.e(TAG, e);
    }

    public static void error(Throwable e) {
        LogUtils.e(TAG, e.toString(), e);
    }

    public static void e(Throwable e) {
        LogUtils.e(TAG, e.toString(), e);
    }
}
